home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / tusrc.zip / LIB / MAKEFILE.IN < prev    next >
Text File  |  1993-09-18  |  2KB  |  70 lines

  1. # Makefile for library files used by GNU textutils.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@
  22. VPATH = @srcdir@
  23.  
  24. SOURCES = error.c getopt.c getopt1.c linebuffer.c regex.c xmalloc.c \
  25. xwrite.c bcopy.c memchr.c memcmp.c memset.c stpcpy.c \
  26. strtol.c strtoul.c alloca.c
  27.  
  28. # Always link in the fast GNU memchr; it speeds up sort, especially on HP-UX.
  29. OBJECTS =  error.o getopt.o getopt1.o linebuffer.o regex.o xmalloc.o \
  30. xwrite.o memchr.o @LIBOBJS@ @ALLOCA@
  31.  
  32. DISTFILES = Makefile.in getopt.h linebuffer.h regex.h $(SOURCES)
  33.  
  34. all: libtu.a
  35.  
  36. .c.o:
  37.     $(CC) -c $(DEFS) -I$(srcdir) $(CPPFLAGS) $(CFLAGS) $<
  38.  
  39. install: all
  40.  
  41. uninstall:
  42.  
  43. TAGS: $(SOURCES)
  44.     etags $(SOURCES)
  45.  
  46. clean:
  47.     rm -f *.a *.o
  48.  
  49. mostlyclean: clean
  50.  
  51. distclean: clean
  52.     rm -f Makefile
  53.  
  54. realclean: distclean
  55.     rm -f TAGS
  56.  
  57. dist:
  58.     ln $(DISTFILES) ../`cat ../.fname`/lib
  59.  
  60. libtu.a: $(OBJECTS)
  61.     rm -f $@
  62.     $(AR) cr $@ $(OBJECTS)
  63.     -$(RANLIB) $@
  64.  
  65. getopt1.o: getopt.h
  66. regex.o: regex.h
  67.  
  68. # Prevent GNU make v3 from overflowing arg limit on SysV.
  69. .NOEXPORT:
  70.